#ifndef DAHENG_H
#define DAHENG_H

//相机参数
#define IMAGE_HEIGHT 1024
#define IMAGE_WIDTH 1280
#define IMAGE_HEIGHT_FOV 1024
#define IMAGE_WIDTH_FOV 1280
#define IMAGE_H_OFFSET 0
#define IMAGE_W_OFFSET 0
#define EXPOSURE 500

#include"GxIAPI.h"
#include"daheng/DxImageProc.h"
#include"daheng/GxIAPI.h"
#include<unistd.h>
#include<opencv2/opencv.hpp>
#include<iostream>

using namespace std;
using namespace cv;
class Daheng{
public:
    void init_camera();
    void get_img();

public:
    int                     iCameraCounts = 1;
    int                     iStatus=-1;
    tSdkCameraDevInfo       tCameraEnumList;
    int                     hCamera;
    tSdkCameraCapbility     tCapability;      //设备描述信息
    tSdkFrameHead           sFrameInfo;
    BYTE*			        pbyBuffer = NULL;
    int                     channel=3;
    UINT                    timeStampL;
    UINT                    timeStampH;
    Mat                     src;
    unsigned char *         g_pRgbBuffer = NULL;     //处理后数据缓存区

};


#endif // MINDVISION_H
